home *** CD-ROM | disk | FTP | other *** search
- package engine.levelData
- {
- import copy.CopyBank;
- import engine.WorldScene;
- import engine.dynamicObjects.*;
-
- public class Level_01 extends LevelData
- {
-
-
- public function Level_01()
- {
- super();
- _goalParameters = new Array();
- }
-
- override public function buildLevel() : *
- {
- var tablet:* = undefined;
- var gTabs:Number = NaN;
- var i:* = undefined;
- var fuelIcon:* = undefined;
- var goalObj:Object = null;
- var missionObj:Object = null;
- super.buildLevel();
- gTabs = 5;
- for(i = 0; i < gTabs; i++)
- {
- tablet = new TabletPiece();
- tablet.x = 800 + i * 300;
- tablet.y = 400 + Math.random() * 150;
- WorldScene.Instance.GameplayObjects.push(tablet);
- }
- fuelIcon = new FuelIcon();
- fuelIcon.x = 3000;
- fuelIcon.y = 500;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- _missionDescription = CopyBank.Instance.MissionDesc_Tablets;
- goalObj = {
- "Type":"Tablet",
- "Count":gTabs
- };
- _goalParameters.push(goalObj);
- missionObj = {
- "Description":_missionDescription,
- "BoundsX":_missionBoundsX,
- "BoundsHint":_missionBoundsHint,
- "GoalParamaters":_goalParameters,
- "PrimaryGoalType":"Tablets",
- "StartLoc":{
- "x":50,
- "y":500
- }
- };
- WorldScene.Instance.setMissionDetails(missionObj);
- }
- }
- }
-